package com.tianji.learning.controller;

import com.tianji.learning.domain.vo.SignResultVO;
import com.tianji.learning.controller.service.ISignRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "签到相关接口")
@RequiredArgsConstructor
@RestController
@RequestMapping("sign-records")
public class SignRecordsController {
    private final ISignRecordService signRecordService;
    @ApiOperation("签到功能接口")
    @PostMapping
    public SignResultVO addSignRecord(){
        return signRecordService.addSignRecord();
    }
    @ApiOperation("查询签到记录")
    @GetMapping
    public Byte[] querySignRecord(){
        return signRecordService.querySignRecord();
    }
}
